<div class="card-block"
     *ngIf="world"
     (click)="openModal()">
  <h3 class="card-title">{{world.name}} ({{world.level |format:true}})</h3>
  <span class="p2">经验:
    <span class="monospace">{{world.prestige | format:true}}</span>
  </span>
  <ul class="list">
    <li *ngFor="let bug of world.additionalBugs; trackBy:getBugId">
      {{getBugName(bug)}}
    </li>
    <li *ngFor="let bon of world.productionsBonus; trackBy:getBonusId">
      {{bon[0].name }} + {{bon[0].usedForProductionBonus[0].getBonusPercentForNum(bon[1]) |format }}%
    </li>
    <li *ngFor="let bon of world.productionsEfficiency; trackBy:getBonusId">
      {{bon[0].name }} + {{bon[0].usedForProductionBonus[0].getBonusPercentForNum(bon[1]) |format }}%
    </li>
    <li *ngFor="let bon of world.productionsAll; trackBy:getBonusId">
      {{bon[0].name }} + {{bon[0].usedForProductionBonus[0].getBonusPercentForNum(bon[1]) |format }}%
    </li>
    <li *ngFor="let unl of world.startingUnlocked; trackBy:getResearchId">
      {{unl.name}} 可用.
    </li>
    <li *ngFor="let start of world.startingUnit; trackBy:getStartId">
      <ng-container *ngIf="start[1].gt(0);else zero">{{start[1] | format}} x {{start[0].name}}</ng-container>
      <ng-template #zero>{{start[0].name}} 可用。</ng-template>
    </li>
  </ul>

  <span class="p2">胜利条件:</span>
  <ul class="list">
    <li *ngFor="let win of world.winConditions; trackBy:getWinId">
      {{win.price | format:true}} {{win.base.name}}
    </li>
  </ul>

  <div *ngIf="world.notWinConditions?.length > 0">
    <span class="p2">敌人:</span>
    <ul class="list">
      <li *ngFor="let mal of world.notWinConditions; trackBy:getMalusId">
        {{mal.name}}
      </li>
    </ul>
  </div>

</div>
